Optimal. Leaf size=168 \[ \frac {x}{a^5}-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {13 \cos ^3(c+d x) \sin (c+d x)}{63 a d (a+a \cos (c+d x))^4}-\frac {34 \cos ^2(c+d x) \sin (c+d x)}{105 a^2 d (a+a \cos (c+d x))^3}+\frac {173 \sin (c+d x)}{315 a^3 d (a+a \cos (c+d x))^2}-\frac {661 \sin (c+d x)}{315 d \left (a^5+a^5 \cos (c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 168, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2844, 3056,
3047, 3098, 2814, 2727} \begin {gather*} -\frac {661 \sin (c+d x)}{315 d \left (a^5 \cos (c+d x)+a^5\right )}+\frac {x}{a^5}+\frac {173 \sin (c+d x)}{315 a^3 d (a \cos (c+d x)+a)^2}-\frac {34 \sin (c+d x) \cos ^2(c+d x)}{105 a^2 d (a \cos (c+d x)+a)^3}-\frac {\sin (c+d x) \cos ^4(c+d x)}{9 d (a \cos (c+d x)+a)^5}-\frac {13 \sin (c+d x) \cos ^3(c+d x)}{63 a d (a \cos (c+d x)+a)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2727
Rule 2814
Rule 2844
Rule 3047
Rule 3056
Rule 3098
Rubi steps
\begin {align*} \int \frac {\cos ^5(c+d x)}{(a+a \cos (c+d x))^5} \, dx &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {\int \frac {\cos ^3(c+d x) (4 a-9 a \cos (c+d x))}{(a+a \cos (c+d x))^4} \, dx}{9 a^2}\\ &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {13 \cos ^3(c+d x) \sin (c+d x)}{63 a d (a+a \cos (c+d x))^4}-\frac {\int \frac {\cos ^2(c+d x) \left (39 a^2-63 a^2 \cos (c+d x)\right )}{(a+a \cos (c+d x))^3} \, dx}{63 a^4}\\ &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {13 \cos ^3(c+d x) \sin (c+d x)}{63 a d (a+a \cos (c+d x))^4}-\frac {34 \cos ^2(c+d x) \sin (c+d x)}{105 a^2 d (a+a \cos (c+d x))^3}-\frac {\int \frac {\cos (c+d x) \left (204 a^3-315 a^3 \cos (c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx}{315 a^6}\\ &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {13 \cos ^3(c+d x) \sin (c+d x)}{63 a d (a+a \cos (c+d x))^4}-\frac {34 \cos ^2(c+d x) \sin (c+d x)}{105 a^2 d (a+a \cos (c+d x))^3}-\frac {\int \frac {204 a^3 \cos (c+d x)-315 a^3 \cos ^2(c+d x)}{(a+a \cos (c+d x))^2} \, dx}{315 a^6}\\ &=-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {13 \cos ^3(c+d x) \sin (c+d x)}{63 a d (a+a \cos (c+d x))^4}-\frac {34 \cos ^2(c+d x) \sin (c+d x)}{105 a^2 d (a+a \cos (c+d x))^3}+\frac {173 \sin (c+d x)}{315 a^3 d (a+a \cos (c+d x))^2}+\frac {\int \frac {-1038 a^4+945 a^4 \cos (c+d x)}{a+a \cos (c+d x)} \, dx}{945 a^8}\\ &=\frac {x}{a^5}-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {13 \cos ^3(c+d x) \sin (c+d x)}{63 a d (a+a \cos (c+d x))^4}-\frac {34 \cos ^2(c+d x) \sin (c+d x)}{105 a^2 d (a+a \cos (c+d x))^3}+\frac {173 \sin (c+d x)}{315 a^3 d (a+a \cos (c+d x))^2}-\frac {661 \int \frac {1}{a+a \cos (c+d x)} \, dx}{315 a^4}\\ &=\frac {x}{a^5}-\frac {\cos ^4(c+d x) \sin (c+d x)}{9 d (a+a \cos (c+d x))^5}-\frac {13 \cos ^3(c+d x) \sin (c+d x)}{63 a d (a+a \cos (c+d x))^4}-\frac {34 \cos ^2(c+d x) \sin (c+d x)}{105 a^2 d (a+a \cos (c+d x))^3}+\frac {173 \sin (c+d x)}{315 a^3 d (a+a \cos (c+d x))^2}-\frac {661 \sin (c+d x)}{315 d \left (a^5+a^5 \cos (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.53, size = 280, normalized size = 1.67 \begin {gather*} \frac {\sec \left (\frac {c}{2}\right ) \sec ^9\left (\frac {1}{2} (c+d x)\right ) \left (39690 d x \cos \left (\frac {d x}{2}\right )+39690 d x \cos \left (c+\frac {d x}{2}\right )+26460 d x \cos \left (c+\frac {3 d x}{2}\right )+26460 d x \cos \left (2 c+\frac {3 d x}{2}\right )+11340 d x \cos \left (2 c+\frac {5 d x}{2}\right )+11340 d x \cos \left (3 c+\frac {5 d x}{2}\right )+2835 d x \cos \left (3 c+\frac {7 d x}{2}\right )+2835 d x \cos \left (4 c+\frac {7 d x}{2}\right )+315 d x \cos \left (4 c+\frac {9 d x}{2}\right )+315 d x \cos \left (5 c+\frac {9 d x}{2}\right )-116676 \sin \left (\frac {d x}{2}\right )+100800 \sin \left (c+\frac {d x}{2}\right )-88284 \sin \left (c+\frac {3 d x}{2}\right )+56700 \sin \left (2 c+\frac {3 d x}{2}\right )-43236 \sin \left (2 c+\frac {5 d x}{2}\right )+18900 \sin \left (3 c+\frac {5 d x}{2}\right )-12384 \sin \left (3 c+\frac {7 d x}{2}\right )+3150 \sin \left (4 c+\frac {7 d x}{2}\right )-1726 \sin \left (4 c+\frac {9 d x}{2}\right )\right )}{161280 a^5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 85, normalized size = 0.51
method | result | size |
derivativedivides | \(\frac {-\frac {\left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{9}+\frac {6 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{7}-\frac {16 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+\frac {26 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-31 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+32 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16 d \,a^{5}}\) | \(85\) |
default | \(\frac {-\frac {\left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{9}+\frac {6 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{7}-\frac {16 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+\frac {26 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-31 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+32 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16 d \,a^{5}}\) | \(85\) |
risch | \(\frac {x}{a^{5}}-\frac {2 i \left (1575 \,{\mathrm e}^{8 i \left (d x +c \right )}+9450 \,{\mathrm e}^{7 i \left (d x +c \right )}+28350 \,{\mathrm e}^{6 i \left (d x +c \right )}+50400 \,{\mathrm e}^{5 i \left (d x +c \right )}+58338 \,{\mathrm e}^{4 i \left (d x +c \right )}+44142 \,{\mathrm e}^{3 i \left (d x +c \right )}+21618 \,{\mathrm e}^{2 i \left (d x +c \right )}+6192 \,{\mathrm e}^{i \left (d x +c \right )}+863\right )}{315 d \,a^{5} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{9}}\) | \(119\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 132, normalized size = 0.79 \begin {gather*} -\frac {\frac {\frac {9765 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {2730 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {1008 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {270 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {35 \, \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}}}{a^{5}} - \frac {10080 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{5}}}{5040 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 188, normalized size = 1.12 \begin {gather*} \frac {315 \, d x \cos \left (d x + c\right )^{5} + 1575 \, d x \cos \left (d x + c\right )^{4} + 3150 \, d x \cos \left (d x + c\right )^{3} + 3150 \, d x \cos \left (d x + c\right )^{2} + 1575 \, d x \cos \left (d x + c\right ) + 315 \, d x - {\left (863 \, \cos \left (d x + c\right )^{4} + 2740 \, \cos \left (d x + c\right )^{3} + 3549 \, \cos \left (d x + c\right )^{2} + 2125 \, \cos \left (d x + c\right ) + 488\right )} \sin \left (d x + c\right )}{315 \, {\left (a^{5} d \cos \left (d x + c\right )^{5} + 5 \, a^{5} d \cos \left (d x + c\right )^{4} + 10 \, a^{5} d \cos \left (d x + c\right )^{3} + 10 \, a^{5} d \cos \left (d x + c\right )^{2} + 5 \, a^{5} d \cos \left (d x + c\right ) + a^{5} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 7.66, size = 116, normalized size = 0.69 \begin {gather*} \begin {cases} \frac {x}{a^{5}} - \frac {\tan ^{9}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{144 a^{5} d} + \frac {3 \tan ^{7}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{56 a^{5} d} - \frac {\tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{5 a^{5} d} + \frac {13 \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{24 a^{5} d} - \frac {31 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{16 a^{5} d} & \text {for}\: d \neq 0 \\\frac {x \cos ^{5}{\left (c \right )}}{\left (a \cos {\left (c \right )} + a\right )^{5}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.47, size = 100, normalized size = 0.60 \begin {gather*} \frac {\frac {5040 \, {\left (d x + c\right )}}{a^{5}} - \frac {35 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 270 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 1008 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 2730 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 9765 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{45}}}{5040 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.48, size = 125, normalized size = 0.74 \begin {gather*} \frac {x}{a^5}-\frac {\frac {863\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{315}-\frac {356\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{315}+\frac {169\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{420}-\frac {41\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{504}+\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{144}}{a^5\,d\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________